<template>
  <view class="index-page">
    <tm-button :block="true" @click="onChangeLocal('zh-Hans')">中文</tm-button>
    <tm-button :block="true" @click="onChangeLocal('en')">English</tm-button>
    <tm-button :block="true" @click="onNavigateTo('/pages/sellCard/index')"
      >To Page: Sell Gift Card</tm-button
    >
  </view>
</template>
<script lang="ts" setup>
const onChangeLocal = (langs) => {
  uni.setLocale(langs)
}

const onNavigateTo = (url) => {
  uni.navigateTo({
    url: url,
  })
}
</script>
<style></style>
